package cn.com.itg.pojo.domain.vo;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

@NoArgsConstructor
@Data
public class OthInResponse implements Serializable {

    /**
     * code : 200
     * message : 操作成功
     * data : {"invoicingDocEntryAndMgmt":"st_purinvoice","code":"QTRK00000020","bustype_name":"其他入库","creatorId":1511008619286784,"operator":"1895296655577344","stockMgr_name":"采购人员01","vouchdate":"2020-09-04 00:00:00","totalQuantity":2,"natCurrency":"G001ZM0000DEFAULTCURRENCT00000000001","id":1916003783774720,"warehouse_isGoodsPosition":false,"org_name":"仓储中心-北京","department":"1511058386784512","pubts":"2020-09-15 12:19:50","createDate":"2020-09-15 12:19:50","creator":"YS测试1","org":"1511042233094400","stockStart":true,"department_name":"仓储中心-北京","accountOrg":"1511040517705984","stockMgr":"1895296655577344","costStart":false,"warehouse":1511109568762112,"warehouse_iSerialManage":false,"bustype":"110000000000005","operator_name":"采购人员01","warehouse_name":"仓库3号","natCurrency_moneyDigit":"2","natCurrency_priceDigit":"7","createTime":"2020-09-15 12:19:50","accountOrg_name":"yontest云创股份","othInRecords":[{"product_cCode":"fl010012","hasDefaultInit":true,"isExpiryDateManage":false,"stockUnitId_Precision":"3","id":1916003783774721,"mainid":1916003783774720,"invExchRate":1,"stockUnitId":1511083865870592,"autoCalcCost":true,"productsku_cName":"物料名称3","isBatchManage":false,"rowno":1,"product":1889570752205056,"stockUnit_name":"件","subQty":2,"product_cName":"物料名称3","warehouseMaterialCheckRule":"1","isSerialNoManage":false,"product_model":"型号1","recorddate":"2020-09-04 00:00:00","unit_name":"件","taxRate":5,"unit":1511083865870592,"productsku":1889570754531584,"productsku_cCode":"fl010012","unit_Precision":"3","qty":2,"product_unitName":"件","unitExchangeType":0,"othInRecordsSNs":[{"detailid":1916003783774721,"id":1934585349084418,"sn":"SH0928152101","grandpaid":1916003783774720,"pubts":"2020-09-15 12:19:50"}]}]}
     */

    private String code;
    private String message;
    private DataBean data;

    @NoArgsConstructor
    @Data
    public static class DataBean implements Serializable{
        /**
         * invoicingDocEntryAndMgmt : st_purinvoice
         * code : QTRK00000020
         * bustype_name : 其他入库
         * creatorId : 1511008619286784
         * operator : 1895296655577344
         * stockMgr_name : 采购人员01
         * vouchdate : 2020-09-04 00:00:00
         * totalQuantity : 2
         * natCurrency : G001ZM0000DEFAULTCURRENCT00000000001
         * id : 1916003783774720
         * warehouse_isGoodsPosition : false
         * org_name : 仓储中心-北京
         * department : 1511058386784512
         * pubts : 2020-09-15 12:19:50
         * createDate : 2020-09-15 12:19:50
         * creator : YS测试1
         * org : 1511042233094400
         * stockStart : true
         * department_name : 仓储中心-北京
         * accountOrg : 1511040517705984
         * stockMgr : 1895296655577344
         * costStart : false
         * warehouse : 1511109568762112
         * warehouse_iSerialManage : false
         * bustype : 110000000000005
         * operator_name : 采购人员01
         * warehouse_name : 仓库3号
         * natCurrency_moneyDigit : 2
         * natCurrency_priceDigit : 7
         * createTime : 2020-09-15 12:19:50
         * accountOrg_name : yontest云创股份
         * othInRecords : [{"product_cCode":"fl010012","hasDefaultInit":true,"isExpiryDateManage":false,"stockUnitId_Precision":"3","id":1916003783774721,"mainid":1916003783774720,"invExchRate":1,"stockUnitId":1511083865870592,"autoCalcCost":true,"productsku_cName":"物料名称3","isBatchManage":false,"rowno":1,"product":1889570752205056,"stockUnit_name":"件","subQty":2,"product_cName":"物料名称3","warehouseMaterialCheckRule":"1","isSerialNoManage":false,"product_model":"型号1","recorddate":"2020-09-04 00:00:00","unit_name":"件","taxRate":5,"unit":1511083865870592,"productsku":1889570754531584,"productsku_cCode":"fl010012","unit_Precision":"3","qty":2,"product_unitName":"件","unitExchangeType":0,"othInRecordsSNs":[{"detailid":1916003783774721,"id":1934585349084418,"sn":"SH0928152101","grandpaid":1916003783774720,"pubts":"2020-09-15 12:19:50"}]}]
         */

        private String invoicingDocEntryAndMgmt;
        private String code;
        private String bustype_name;
        private long creatorId;
        private String operator;
        private String stockMgr_name;
        private String vouchdate;
        private int totalQuantity;
        private String natCurrency;
        private long id;
        private boolean warehouse_isGoodsPosition;
        private String org_name;
        private String department;
        private String pubts;
        private String createDate;
        private String creator;
        private String org;
        private boolean stockStart;
        private String department_name;
        private String accountOrg;
        private String stockMgr;
        private boolean costStart;
        private long warehouse;
        private boolean warehouse_iSerialManage;
        private String bustype;
        private String operator_name;
        private String warehouse_name;
        private String natCurrency_moneyDigit;
        private String natCurrency_priceDigit;
        private String createTime;
        private String accountOrg_name;
        private List<OthInRecordsBean> othInRecords;

        @NoArgsConstructor
        @Data
        public static class OthInRecordsBean implements Serializable{
            /**
             * product_cCode : fl010012
             * hasDefaultInit : true
             * isExpiryDateManage : false
             * stockUnitId_Precision : 3
             * id : 1916003783774721
             * mainid : 1916003783774720
             * invExchRate : 1
             * stockUnitId : 1511083865870592
             * autoCalcCost : true
             * productsku_cName : 物料名称3
             * isBatchManage : false
             * rowno : 1
             * product : 1889570752205056
             * stockUnit_name : 件
             * subQty : 2
             * product_cName : 物料名称3
             * warehouseMaterialCheckRule : 1
             * isSerialNoManage : false
             * product_model : 型号1
             * recorddate : 2020-09-04 00:00:00
             * unit_name : 件
             * taxRate : 5
             * unit : 1511083865870592
             * productsku : 1889570754531584
             * productsku_cCode : fl010012
             * unit_Precision : 3
             * qty : 2
             * product_unitName : 件
             * unitExchangeType : 0
             * othInRecordsSNs : [{"detailid":1916003783774721,"id":1934585349084418,"sn":"SH0928152101","grandpaid":1916003783774720,"pubts":"2020-09-15 12:19:50"}]
             */

            private String product_cCode;
            private boolean hasDefaultInit;
            private boolean isExpiryDateManage;
            private String stockUnitId_Precision;
            private long id;
            private long mainid;
            private int invExchRate;
            private long stockUnitId;
            private boolean autoCalcCost;
            private String productsku_cName;
            private boolean isBatchManage;
            private int rowno;
            private long product;
            private String stockUnit_name;
            private int subQty;
            private String product_cName;
            private String warehouseMaterialCheckRule;
            private boolean isSerialNoManage;
            private String product_model;
            private String recorddate;
            private String unit_name;
            private int taxRate;
            private long unit;
            private long productsku;
            private String productsku_cCode;
            private String unit_Precision;
            private int qty;
            private String product_unitName;
            private int unitExchangeType;
            private List<OthInRecordsSNsBean> othInRecordsSNs;

            @NoArgsConstructor
            @Data
            public static class OthInRecordsSNsBean implements Serializable{
                /**
                 * detailid : 1916003783774721
                 * id : 1934585349084418
                 * sn : SH0928152101
                 * grandpaid : 1916003783774720
                 * pubts : 2020-09-15 12:19:50
                 */

                private long detailid;
                private long id;
                private String sn;
                private long grandpaid;
                private String pubts;
            }
        }
    }
}
